package com.woniuxy.charin.model.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @TableName investors
 */
@TableName(value ="investors")
@Data
public class Investors implements Serializable {

    private Integer id;

    private String name;

    private Integer isCustomer;

    private String investmentType;

    private Integer gender;

    private String residenceAddress;

    private String phoneNumber;

    private String relatedCustomer;

    private BigDecimal investmentAmount;

    private String idCardNumber;

    private String status;

    private Integer userId;

    private String photoPath;
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
    @TableField(exist = false)
    private List<InvestorsvoZb>investorsvoZbs= new ArrayList<>();
    @TableField(exist = false)
    private List<Projects>projects= new ArrayList<>();

    private static final long serialVersionUID = 1L;
}